package com.sc.nft.admin.request;

import com.sc.nft.enums.PrizeDrawActivityRewardsEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class AddPrizeDrawActivityRewardsRequest {

    @ApiModelProperty(value = "奖项名称")
    @NotNull(message = "奖项名称不能为空")
    private String name;

    @ApiModelProperty(value = "中奖类型 SPECIAL_PRIZE:特等奖 FIRST_PRIZE:一等奖 SECOND_PRIZE:二等奖 THIRD_PRIZE:三等奖 FOURTH_PRIZE:四等奖")
    @NotBlank(message = "中奖类型不能为空")
    private PrizeDrawActivityRewardsEnum type;

    @ApiModelProperty(value = "中奖类型名称")
    @NotBlank(message = "中奖类型名称不能为空")
    private String typeName;

    @ApiModelProperty(value = "中奖比例")
    @NotNull(message = "中奖比例不能为空")
    @DecimalMin(value = "0.0001", inclusive = false,message = "中奖比例必须大于0.0001")
    @DecimalMax(value = "100.0",message = "中奖比例必须小于等于100")
    private BigDecimal scale;
}
